//
//  SKProductsRequest+Blocks.h
//
//  Created by Alexey Aleshkov on 12.09.12.
//  Copyright (c) 2012 DzeTech. All rights reserved.
//


#import <Foundation/Foundation.h>
#import <StoreKit/StoreKit.h>


typedef void(^SKProductsRequestSuccessBlock)(SKProductsResponse *, NSArray *);
typedef void(^SKProductsRequestFailureBlock)(NSError *);


@interface SKProductsRequest (Blocks)

+ (void)requestWithProductIdentifiers:(NSArray *)productIdentifiers successBlock:(SKProductsRequestSuccessBlock)successBlock failureBlock:(SKProductsRequestFailureBlock)failureBlock;

- (id)initWithProductIdentifiers:(NSArray *)productIdentifiers successBlock:(SKProductsRequestSuccessBlock)successBlock failureBlock:(SKProductsRequestFailureBlock)failureBlock;

@end
